<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="psn_eqp_wide" cellspacing="1">
	<col width="16%"/>
	<col width="12%"/>
	<col width="12%"/>
	<col width="12%"/>
	<col width="12%"/>
	<col width="12%"/>
	<col width="12%"/>
	<tr>
		<th rowspan="2" class="TblHead" ></th>
		<th colspan="3" class="TblHead"  style="text-align: center;"><span class="color_red">*</span>固定人员</th>
		<th colspan="3" class="TblHead"  style="text-align: center;"><span class="color_red">*</span>流动人员（客座）</th>
	</tr>
	<tr>
		<th align="center" class="TblHead" >小计（人）</th>
		<th align="center" class="TblHead" >高级（人）</th>
		<th align="center" class="TblHead" >中级（人）</th>
		<th align="center" class="TblHead" >小计（人）</th>
		<th align="center" class="TblHead" >高级（人）</th>
		<th align="center" class="TblHead" >中级（人）</th>
	</tr>
	
	<tr>
		<td align="center">工 程 技 术<br/>研 究 人 员</td>
		<td align="center">
		<c:set var="guding_eng_yj_total"><x:out select="$xmlData/data/proposal/psn_wide/guding_eng_yj_total" /></c:set>
		<c:if test="${empty guding_eng_yj_total }"><c:set var="guding_eng_yj_total">0</c:set></c:if>
		<input name="proposal/psn_wide/guding_eng_yj_total" id="guding_eng_yj_total" type="text" label="工程技术研究人员-->固定人员-->小计" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${guding_eng_yj_total }"  
		     disabled="disabled" 
		     onchange="countNumqhh('guding_eng_yj_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/guding_eng_yj_high" id="guding_eng_yj_high" type="text" label="工程技术研究人员-->固定人员-->高级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/guding_eng_yj_high" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('guding_eng_yj_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>	
		</td>
		<td align="center">
		<input name="proposal/psn_wide/guding_eng_yj_middle" id="guding_eng_yj_middle" type="text" label="工程技术研究人员-->固定人员-->中级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/guding_eng_yj_middle" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('guding_eng_yj_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<c:set var="liudong_eng_yj_total"><x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_yj_total" /></c:set>
		<c:if test="${empty liudong_eng_yj_total }"><c:set var="liudong_eng_yj_total">0</c:set></c:if>
		<input name="proposal/psn_wide/liudong_eng_yj_total" id="liudong_eng_yj_total" type="text" label="工程技术研究人员-->流动人员-->小计" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${liudong_eng_yj_total }"  
		      disabled="disabled"
		     onchange="countNumqhh('liudong_eng_yj_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/liudong_eng_yj_high" id="liudong_eng_yj_high" type="text" label="工程技术研究人员-->流动人员-->高级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_yj_high" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('liudong_eng_yj_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/liudong_eng_yj_middle" id="liudong_eng_yj_middle" type="text" label="工程技术研究人员-->流动人员-->中级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_yj_middle" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('liudong_eng_yj_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>		
	</tr>

	
	<tr>
		<td align="center">工 程 技 术<br/>设 计 人 员</td>
		<td align="center">
		<c:set var="guding_eng_sj_total"><x:out select="$xmlData/data/proposal/psn_wide/guding_eng_sj_total" /></c:set>
		<c:if test="${empty guding_eng_sj_total }"><c:set var="guding_eng_sj_total">0</c:set></c:if>
		
		<input name="proposal/psn_wide/guding_eng_sj_total" id="guding_eng_sj_total" type="text" label="工程技术设计人员-->固定人员-->小计" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${guding_eng_sj_total }"  
		     disabled="disabled"
		     onchange="countNumqhh('guding_eng_sj_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/guding_eng_sj_high" id="guding_eng_sj_high" type="text" label="工程技术设计人员-->固定人员-->高级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/guding_eng_sj_high" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('guding_eng_sj_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/guding_eng_sj_middle" id="guding_eng_sj_middle" type="text" label="工程技术设计人员-->固定人员-->中级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/guding_eng_sj_middle" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('guding_eng_sj_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<c:set var="liudong_eng_sj_total"><x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_sj_total" /></c:set>
		<c:if test="${empty liudong_eng_sj_total }"><c:set var="liudong_eng_sj_total">0</c:set></c:if>
	
		<input name="proposal/psn_wide/liudong_eng_sj_total" id="liudong_eng_sj_total" type="text" label="工程技术设计人员-->流动人员-->小计" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${liudong_eng_sj_total }"  
		      disabled="disabled"
		     onchange="countNumqhh('liudong_eng_sj_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/liudong_eng_sj_high" id="liudong_eng_sj_high" type="text" label="工程技术设计人员-->流动人员-->高级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_sj_high" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('liudong_eng_sj_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>	
		</td>
		<td align="center">
		<input name="proposal/psn_wide/liudong_eng_sj_middle" id="liudong_eng_sj_middle" type="text" label="工程技术设计人员-->流动人员-->中级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_sj_middle" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('liudong_eng_sj_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
	</tr>	
	
	<tr>
		<td align="center">管 理 人 员</td>
		<td align="center">
		<c:set var="guding_eng_manage_total"><x:out select="$xmlData/data/proposal/psn_wide/guding_eng_manage_total" /></c:set>
		<c:if test="${empty guding_eng_manage_total }"><c:set var="guding_eng_manage_total">0</c:set></c:if>
	
		<input name="proposal/psn_wide/guding_eng_manage_total" id="guding_eng_manage_total" type="text" label="管理人员-->固定人员-->小计" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${guding_eng_manage_total }"  
		     disabled="disabled"
		     onchange="countNumqhh('guding_eng_manage_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/guding_eng_manage_high" id="guding_eng_manage_high" type="text" label="管理人员-->固定人员-->高级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/guding_eng_manage_high" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('guding_eng_manage_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/guding_eng_manage_middle" id="guding_eng_manage_middle" type="text" label="管理人员-->固定人员-->中级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/guding_eng_manage_middle" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('guding_eng_manage_','high,middle','total');countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<c:set var="liudong_eng_manage_total"><x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_manage_total" /></c:set>
		<c:if test="${empty liudong_eng_manage_total }"><c:set var="liudong_eng_manage_total">0</c:set></c:if>
	
		<input name="proposal/psn_wide/liudong_eng_manage_total" id="liudong_eng_manage_total" type="text" label="管理人员-->流动人员-->小计" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${liudong_eng_manage_total }"  
		     disabled="disabled"
		     onchange="countNumqhh('liudong_eng_manage_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
		<td align="center">
		<input name="proposal/psn_wide/liudong_eng_manage_high" id="liudong_eng_manage_high" type="text" label="管理人员-->流动人员-->高级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_manage_high" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('liudong_eng_manage_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>	
		</td>
		<td align="center">
		<input name="proposal/psn_wide/liudong_eng_manage_middle" id="liudong_eng_manage_middle" type="text" label="管理人员-->流动人员-->中级" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/liudong_eng_manage_middle" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		     onchange="countNumqhh('liudong_eng_manage_','high,middle','total');countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');"/>
		</td>
	</tr>	
	
	<tr>
	<td align="center">技 术 工 人</td>
	<td colspan="3" align="center">
	<input name="proposal/psn_wide/guding_jsgr" id="guding_jsgr" type="text" label="技术工人-->固定人员" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/guding_jsgr" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		    	 onchange="countNumqhh('guding_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');" 
		    />
	</td>
	<td colspan="3" align="center">
	<input name="proposal/psn_wide/liudong_jsgr" id="liudong_jsgr" type="text" label="技术工人-->流动人员" class=" input_text required maxlength:20" style="text-align:right;width:80%" value="<x:out select="$xmlData/data/proposal/psn_wide/liudong_jsgr" />"  
		     onfocus="InitInput.setNumber(this,7,0,0)"
		    	 onchange="countNumqhh('liudong_','eng_yj_total,eng_sj_total,eng_manage_total,jsgr','total');" 
		    />
	</td>	
	</tr>
	<tr>
	<td align="center">合 &nbsp; &nbsp;  &nbsp; &nbsp;  &nbsp;计</td>
	<td colspan="3" align="center">
	<c:set var="guding_total"><x:out select="$xmlData/data/proposal/psn_wide/guding_total" /></c:set>
		<c:if test="${empty guding_total }"><c:set var="guding_total">0</c:set></c:if>
	
	<input name="proposal/psn_wide/guding_total" id="guding_total" type="text" label="合计-->固定人员" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${guding_total }"  
		     disabled="disabled"
		    />
	</td>
	<td colspan="3" align="center">
	<c:set var="liudong_total"><x:out select="$xmlData/data/proposal/psn_wide/liudong_total" /></c:set>
		<c:if test="${empty liudong_total }"><c:set var="liudong_total">0</c:set></c:if>
	
	<input name="proposal/psn_wide/liudong_total" id="liudong_total" type="text" label="合计-->流动人员" class=" input_text required maxlength:20 gray" style="text-align:right;width:80%" value="${liudong_total }"  
		      disabled="disabled"
		    />
	</td>	
	</tr>
</table>

<script type="text/javascript">
function countNumqhh(idStart, countStr, totalStr) {

	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		var fund = $("#" + idStart + indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = "0";
		count = ((parseFloat(count)*10000 + parseFloat(fund)*10000)/10000);
	}
	
	$("#" + idStart + totalStr).val(count);
}
</script>



